const {
	http
} = uni.$u
// 获取菜单
export const fetchMenu = (params, config = {}) => http.post('/ebapi/public_api/index', params, config)
export const login = (params) => http.post('/dev-api/v1/user/login', params)
export const register = (params) => http.post('/dev-api/v1/user/register', params)
export const checkUserNameUnique = (username) => http.post("/dev-api/v1/user/checkUserNameUnique/" + username)
export const loadCover = () => http.get("/dev-api/v1/cover")
export const loadProtocol = () => http.get("/dev-api/v1/protocol")